import 'package:event_bus/event_bus.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:yyshort/common/model/video_model.dart';

EventBus eventBus = EventBus();

// ignore: depend_on_referenced_packages
class SharedDataController extends GetxController {
  // 存储需要传递的视频模型

  // RxList<dynamic> videoModelList = [].obs;

  /// 视频数据源列表（每个 item 对应一个视频）
  RxList<dynamic> videoInfoList = [].obs;
}

class CustomNotification extends Notification {
  final String message;

  CustomNotification(this.message);
}

class VideoEvent {
  final VideoModel videoModel;
  VideoEvent(this.videoModel);
}

class VideoNeedPayEvent {
  final int code;
  VideoNeedPayEvent(this.code);
}

class NetWorkRefreshEvent {
  NetWorkRefreshEvent();
}

class ISCanScrollEvent {
  late bool isScrollAble;

  ISCanScrollEvent(this.isScrollAble);
}

class IsScrollUpEvent {
  late bool ScrollUp;

  IsScrollUpEvent(this.ScrollUp);
}

class StopPlayerEvent {
  StopPlayerEvent();
}

class AutoPalyerNExtEvent {
  AutoPalyerNExtEvent();
}

class AutoToPlayerPageEvent {
  AutoToPlayerPageEvent();
}

class LanguageChangeRefreshEvent {
  LanguageChangeRefreshEvent();
}
